package com.biz.primus.ms.payment.channel.allinpay.res;

import io.swagger.annotations.ApiModel;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import java.util.Objects;

/**
 * AllInPayCardPayPwdRespVo
 *
 * @author JKLiues
 * @date 2017年11月15日
 */
@ApiModel("卡云支付响应对象")
@Getter
@Setter
@NoArgsConstructor
public class AllInPayCardPayPwdRespVo extends BaseAllInPayCardRespVo {
    private static final long serialVersionUID = 8017324977611895583L;
    private AllInPayCardPayRespVo card_paywithpassword_add_response;

    public Boolean isProcessSuccess() {
        if (card_paywithpassword_add_response == null) {
            return false;
        }
        AllInPayItemInfo pay_result_info = card_paywithpassword_add_response.getPay_result_info();
        if (pay_result_info == null) {
            return false;
        }
        return Objects.equals(1, pay_result_info.getStat());
    }
}